package javacompiler.lex;

import java_cup.runtime.Symbol;

public class JavaSymbol extends Symbol {

	private int line;
	private int column;
	private String lexVal;
	private String message;
	
	public JavaSymbol(int id, int line, int column, String lexVal) {
		super(id);
		
		this.line = line;
		this.column = column;
		this.lexVal = lexVal;
	}
	
	public JavaSymbol(int id, Object o, int line, int column) {
		super(id, o);
		
		this.line = line;
		this.column = column;
	}
	
	public JavaSymbol(int id, int line, int column) {
		super(id);
		
		this.line = line;
		this.column = column;
	}

	public int getLine() {
		return line;
	}

	public int getColumn() {
		return column;
	}

	// FIXME used in the error logic
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
